// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "InteractionWidget.generated.h"

/**
 * 
 */
UCLASS()
class MISCELLANEOUSPROJECT_API UInteractionWidget : public UUserWidget
{
	GENERATED_BODY()
public:
	virtual void NativeConstruct() override;
public:
	void RequestDestruct();
	UFUNCTION(BlueprintCallable, Category = MissionComponent)
	void UpdateInteractionText(FKey InKey, FText InAction);
private:
	void DelayLater();
public:
	UPROPERTY(meta = (BindWidget))
	class UTextBlock* Action;
	UPROPERTY(meta = (BindWidget))
	class UTextBlock* Key;
private:
	FTimerHandle TimerHandle;
};
